<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SwiftAdmin 后台管理开发框架</title>
<link href="./favicon.ico" rel="icon">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> 
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link href="__STATICADMIN__layui/css/layui.css?{:config('app.version')}" rel="stylesheet" type="text/css" />
<link href="__STATICADMIN__css/style.css?{:config('app.version')}" rel="stylesheet" type="text/css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>

<body class="layui-layout-body" >
<div class="layui-layout layui-layout-admin">
    <!-- 头部区域 -->    
    <div class="layui-header">
        <!-- 头部导航区域 -->
        <ul class="layui-nav layui-layout-left">
          <li class="layui-nav-item layadmin-flexible" lay-unselect>
            <a href="javascript:;" sa-event="flexible" title="{:__('侧边伸缩')}">
              <i class="layui-icon layui-icon-shrink-right" id="flexible" ></i>
            </a>
          </li>
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;" sa-event="refresh" title="{:__('刷新')}">
              <i class="layui-icon layui-icon-refresh"></i>
            </a>
          </li>
          <!-- // 多系统模式下元素 -->
          <div class="layui-nav-head"><ul class="layui-nav layui-nav-top" lay-filter="lay-top-menu"></ul></div>
        </ul>

        <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">
          
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;" sa-event="message" lay-text="{:__('消息中心')}">
              <i class="layui-icon layui-icon-notice"></i>  
              <!-- 如果有新消息，则显示小圆点 -->
              <span class="layui-badge-dot"></span>
            </a>
          </li>

          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" sa-event="fullscreen" title="{:__('全屏')}" >
              <i class="layui-icon layui-icon-screen-full"></i>
            </a>
          </li>
          <li class="layui-nav-item" lay-unselect>
            <a href="javascript:;">
              <img src="{$AdminLogin.face}" class="layui-nav-img">
              <cite id="username">{$AdminLogin.name}</cite>
            </a>
            <!-- 后台的个人中心主页 -->
            <dl class="layui-nav-child" id="userHome" style="text-align: center;">
              <dd><a sa-event="tabs" lay-url="{:url('/system.admin/center',[],false)}" lay-title="{:__('用户中心')}" >{:__('个人资料')}</a></dd>
              <dd><a sa-event="pwd" >{:__('修改密码')}</a></dd>
              <dd><a class="layui-system-clear" >{:__('清除缓存')}</a></dd>
              <hr>
              <dd><a sa-event="logout">{:__('退出')}</a></dd>
            </dl>
          </li>
          
          <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a href="javascript:;" sa-event="theme" ><i class="layui-icon layui-icon-more-vertical"></i></a>
          </li>
          <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-unselect>
            <a href="javascript:;" sa-event="more"><i class="layui-icon layui-icon-more-vertical"></i></a>
          </li>
        </ul>
      </div>

      <!-- 侧边菜单 -->
      <div class="layui-side layui-side-menu">
        <div class="layui-side-scroll">
          <div class="layui-logo" href="/" >
            <img src="/static/admin/images/logo.png?v{:config('app.version')}" alt="" width="35" height="35">
            <h1>Swift Admin Pro</h1>
          </div>
          <!-- // 侧边菜单 -->
          <ul class="layui-nav layui-nav-tree arrow2" lay-shrink="all" lay-filter="lay-side-menu" lay-accordion="true" ></ul>
        </div>
      </div>
      <!-- 内容主体区域 -->
      <div class="layui-body"></div>
      <!-- 底部固定区域 -->
      <div class="layui-footer" > copyright © 2020 <a href="http://www.swiftadmin.net" target="_blank">SwiftAdmin</a> all rights reserved.
        <span class="layui-layout-right" style="margin-right: 10px;">Build {:config('app.version')}</span>
      </div>
</div>
<script src="__STATICADMIN__layui/layui.js?{:config('app.version')}"></script>
<script src="__STATICADMIN__js/common.js?{:config('app.version')}"></script>
<script>
  layui.use(['admin','mousewheel'],function(){
      var jquery = layui.jquery;
      var admin = layui.admin;
      var mousewheel = layui.mousewheel;

      // 初始化函数
      admin.loading({
          title:'{:__("主页")}',
          urls:"{:url_raw('/index/console')}"
      });

      // 实现横向滚动
      jquery('.layui-nav-head').on('mousewheel', function (event) {
          jquery(this).stop();
          jquery(this).animate({'scrollLeft': jquery(this).scrollLeft() - event.deltaFactor * event.deltaY * 2}, 80);
          event.stopPropagation();
          event.preventDefault();
      });

})
</script>
</body>
</html>
